package com.xms.schema.service.attribute;

import com.xms.core.exception.XmsException;
import com.xms.datacore.service.ICreaterService;
import com.xms.schema.core.AttributeDescriptor;
import com.xms.schema.entity.Attribute;
import com.xms.schema.entity.Entity;

import java.sql.SQLException;

/**
 * <p>
 * IAttributeCreaterService
 * </p>
 *
 * @author migo
 * @since 2021/9/2
 */
public interface IAttributeCreaterService extends ICreaterService<Attribute> {
    boolean create(AttributeDescriptor attributeDescriptor) throws SQLException, XmsException;
    boolean createDefaultAttributes(Entity entity, DefaultAttributeDatas defaultAttributeDatas) throws XmsException, SQLException;
    boolean createOwnerAttributes(Entity entity) throws XmsException, SQLException;
    boolean createWorkFlowAttributes(Entity entity) throws XmsException, SQLException;
}
